package m4d2;
//函数式接口作为参数
public class cRunnable {
    public static void method(Runnable run){
        new Thread(run).start();
    }

    public static void main(String[] args) {
        method(new Runnable() {
            @Override
            public void run() {
                System.out.println("aaaa");
            }
        });

        //优化lambda
        method(()->System.out.println("bbbb"));


    }
}
